#!/bin/bash

# test name
test_name="test_queenmary"

# screen config
screen_cfg="test_queenmary/screen.cfg"
#screen_cfg=screen_cleanup.cfg

# roles
initiator="192.168.3.1"
responder="192.168.5.2"
mbox1="192.168.3.2"
mbox2="192.168.4.2"

initiator_port=22
responder_port=22
mbox1_port=22
mbox2_port=22

#queenmary HIPD_HIT=2001:0017:457f:75f2:65c6:09e5:0e33:f6ec
#hms victory HIPD_HIT=2001:0017:01b1:1484:2fb9:aefb:5d8b:4193
# hits
initiator_hit="2001:1c:df46:b968:a716:12e9:2038:24eb"
responder_hit="2001:11:5a0f:17d1:c3a9:ec18:142a:b5d"

# branch
hipldir="/home/ziegeldorf/hipl-bzr/paper-signaling-final"
binary_32="binary_32"
binary_64="binary_64"
hipldir_remote="/root"

# start options
hipd_options="-kp"
hipfw_options="-kSF"
hipfw_mbox_options="-ksA"
hipfw_mbox2_options="-ksA"

# wait some seconds for hipd and hipfw to start up before doing tests
startup_timeout=4

# hip config (keys, etc)
initiator_hip_cfg="initiator_hip_cfg"
responder_hip_cfg="responder_hip_cfg"
mbox_hip_cfg="mbox1_hip_cfg"
mbox2_hip_cfg="mbox2_hip_cfg"

# firewall configs
initiator_hipfw_cfg="test_queenmary/hipfw_initiator.cfg"
responder_hipfw_cfg="test_queenmary/hipfw_responder.cfg"
mbox_hipfw_cfg="test_queenmary/hipfw_mbox1.cfg"
mbox2_hipfw_cfg="test_queenmary/hipfw_mbox2.cfg"

# certificate setup

ca_dir="ca_certs"

# user keys and certs
user_key_dir=${ca_dir}

# trust roots
trusted_certificate_dir="tr_certs"

# 1 to install user certificates chains, 0 to flush them
user_certificates=1
user_certificate_dir="user_certs"

# 1 to install application certificates, 0 to flush them
app_certificates=1
app_config_dir=${ca_dir}
app_cert_client=${app_config_dir}"/client.cert"
app_chain_client=${app_config_dir}"/client.chain"
app_cert_server=${app_config_dir}"/server.cert"
app_chain_server=${app_config_dir}"/server.chain"
app_cert_dir_client="/root"
app_cert_dir_server="/root"

# updates to do (the number of connections...)
#sgnl_updates=2
